package io.github.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.github.dao.SysEquipmentDao;
import io.github.entity.SysEquipmentEntity;
import io.github.service.SysEquipmentService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: weil
 * @date: 2019/9/27 11:19
 * @version: 1.0
 * @description:
 */
@Service
public class SysEquipServiceImpl extends ServiceImpl<SysEquipmentDao, SysEquipmentEntity> implements SysEquipmentService {
    @Override
    public void save(SysEquipmentEntity equipment) {
        baseMapper.insert(equipment);
    }

    @Override
    public void update(SysEquipmentEntity equipment) {
        baseMapper.updateNoMapper(equipment);
    }

    @Override
    public List<SysEquipmentEntity> selectByAreaid(String areaid) {
        return baseMapper.selectByAreaid(areaid);
    }

    @Override
    public List<String> queryEquipnumList(String areaid) {
        return baseMapper.queryEquipnumList(areaid);
    }
}
